<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        let sum = 0
        let num1 = 100
        let num2 = 200
        //页面依次打印 100-200之间,可以被6整除并且能够被5整除的数的和
        function sumCount(num1, num2) {
            console.log(num1, num2)
            for (let i = num1; i <= num2; i++) {
                // console.log(i)
                if (i % 6 === 0 && i % 5 === 0) {
                    sum += i
                }
            }
            // console.log(sum)
            return sum
        }
        let re = sumCount(100, 200)
        console.log(sum)






    </script>

</body>

</html>